package Level01_four;

public class Anonymous  {
    public static void main(String[] args) {
        Speaking speak = new Speaking() {
            @Override
            public void chinese() {
                System.out.println("通过匿名内部类来实现chinese");
            }

            @Override
            public void english() {
                System.out.println("通过匿名内部类来实现english");
            }
        };
        speak.chinese();
        speak.english();
        System.out.println("======");
        Famous famous = new Famous();
        famous.english();
        famous.chinese();
    }

}
